BIN=pool.exe
G=g++
SRC=$(wildcard *.cpp)
OBJ=$(SRC:.cpp=.o)
LFLAGS=-o
FLAGS=-c
RM=rm -f
#print-vars:
#	@echo "G: $(G)"
#	@echo "LFLAGS: $(LFLAGS)"
#	@echo "FLAGS: $(FLAGS)"
$(BIN):$(OBJ)
	@$(G) $(LFLAGS) $@ $^
%.o:%.cpp
	@$(G) $(FLAGS) $<
.PHONY:clean
clean:
	$(RM) $(OBJ) $(BIN)
